package com.yellowframework.cloud.api.system;

import com.yellowframework.cloud.common.model.response.ObjectResponseResult;
import com.yellowframework.cloud.common.model.response.QueryResponseResult;
import com.yellowframework.cloud.common.model.response.ResponseResult;
import com.yellowframework.cloud.domain.system.SysDictionary;
import com.yellowframework.cloud.domain.system.ext.SysDictionaryExt;
import com.yellowframework.cloud.domain.system.request.QuerySysDictionaryRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags="字典管理")
public interface SysDictionaryControllerApi {

    @ApiOperation("分页查询列表数据")
    QueryResponseResult<SysDictionary> pageList(Integer page, Integer size, QuerySysDictionaryRequest request);

    @ApiOperation("信息")
    ObjectResponseResult<SysDictionary> get(Long id);

    @ApiOperation("保存")
    ResponseResult save(SysDictionary request);

    @ApiOperation("修改")
    ResponseResult update(Long id, SysDictionary request);

    @ApiOperation("删除")
    ResponseResult delete(Long[] ids);

    @ApiOperation("字典列表")
    QueryResponseResult<SysDictionary> select();

    @ApiOperation("所有字典数据")
    QueryResponseResult<SysDictionaryExt> all();
}
